import request from '@/utils/request'

// 查询小-历史数据列表
export function listData(query) {
  return request({
    url: '/datastatistics/meterhistory/list',
    method: 'get',
    params: query
  })
}

// 查询小-历史数据详细
export function getData(ID) {
  return request({
    url: '/datastatistics/meterhistory/' + ID,
    method: 'get'
  })
}

// 新增小-历史数据
export function addData(data) {
  return request({
    url: '/datastatistics/meterhistory',
    method: 'post',
    data: data
  })
}

// 修改小-历史数据
export function updateData(data) {
  return request({
    url: '/datastatistics/meterhistory',
    method: 'put',
    data: data
  })
}

// 删除小-历史数据
export function delData(ID) {
  return request({
    url: '/datastatistics/meterhistory/' + ID,
    method: 'delete'
  })
}

